package cn.getech.data.development.service;


import cn.getech.data.development.entity.JobDepHistory;
import cn.getech.data.development.entity.JobRunHistory;
import cn.getech.data.development.entity.ProcInfo;
import cn.getech.data.intelligence.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 任务执行历史表 服务类
 * </p>
 *
 * @author zenith
 * @since 2018-08-27
 */
public interface JobRunHistoryService extends IService<JobRunHistory> {

    PageUtils queryPage(Map<String, Object> params);

    List<JobRunHistory> getInfoByJobId(List<Integer> jobIds);
    List<String> selectOozieIdsByDepOozieIds(List<String> depOozieIds);

    boolean saveOrUpdate2(JobRunHistory entity);

    String getLog(Integer id);

    void removeLogic(JobDepHistory jobDepHistory);

    void removeLogicById(Integer parseInt);

    void moveLog(String endTime);

    List<JobRunHistory> selectAllRunningList();

    List<ProcInfo> logProcs(Integer type);

    List<Long> logUsers(Integer type);

    List<JobRunHistory> selectListRunAndStop(String param);
}
